import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from 'axios'
// 引入字体文件
import '@/assets/css/font/iconfont.css'
// 引入全局配置文件
import '@/assets/css/global.less'
import SocketService from '@/utils/socket_service.js'
SocketService.Instance.connect()
// 挂载SocketService对象到vue的原型对象上
Vue.prototype.$socket = SocketService.Instance

// 请求基准路径
axios.defaults.baseURL = 'http://127.0.0.1:8888/api/'
// 使用方法：this.$http
Vue.prototype.$http = axios

Vue.config.productionTip = false
// 使用语法：this.$echarts
Vue.prototype.$echarts = window.echarts

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
